Previous Book Contents Book Index Next

Inside Macintosh: Open Transport /
Chapter 5 - Option Management / Option Management Reference
Functions / Finding Options


OTFindOption

Finds a specific option in an options buffer.

C INTERFACE
TOption* OTFindOption (UInt8* buffer, UInt32 buflen, 
                       OTXTILevel level, OTXTIName name);
C++ INTERFACE
None. C++ applications use the C interface to this function.

PARAMETERS
buffer
A pointer to the buffer containing the option to be found.
buflen
The size of the buffer containing the option to be found.
level
The protocol of the option to be found.
name
The name of the option to be found.
DESCRIPTION
Given a buffer such as might be returned by the OTOptionManagement function or by any endpoint function that returns a buffer containing option information, you can use the OTFindOption function to find a specific option in the buffer.

SEE ALSO
To parse through a buffer, option by option, use the OTNextOption function (described next).

To convert option information in a buffer into a string, use the OTCreateOptionString function (page 5-42).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 AUG 1996